package com.miaostars.apakey.events;

import com.miaostars.apakey.Apakey;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;

public class PlayerJoinListener implements Listener {
    
    private final Apakey plugin;
    
    public PlayerJoinListener(Apakey plugin) {
        this.plugin = plugin;
    }
    
    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        Player player = event.getPlayer();
        player.sendMessage("§a您的游戏收到 §cApakey §a监管，请文明游戏");
    }
}
